package 线程的学习.udp和tcp的学习;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Scanner;

public class InetAddressTest {
    public static void main(String[] args) throws UnknownHostException {
        String s;
        Scanner s1=new Scanner(System.in);
        s=s1.nextLine();
        InetAddress [] addr;
        addr=InetAddress.getAllByName(s);
        for(int i=0;i<addr.length;i++){
            System.out.println(addr[i].toString());
        }
     /*   for(int i=0;i<addr.length;i++){
            System.out.println(addr[i]);
        }*/
    }
}
